import React from 'react';
import { Spin } from 'antd';
import { formatMessage } from 'umi/locale';
import styles from './index.less';

// loading components from code split
// https://umijs.org/plugin/umi-plugin-react.html#dynamicimport
export default () => (
  <div className={styles.content}>
    <div className={styles.loading}>
      <Spin delay={100} size="large" tip={formatMessage({ id: 'page.loading' })} />
    </div>
  </div>
);
